Skip to content

Add backwards compatibility with 2024-10-07 #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 7, 2024

Conversation

jspahrsummers
Copy link
Member

No description provided.

@@ -196,7 +197,7 @@ export const InitializeRequestSchema = RequestSchema.extend({
/**
* The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well.
*/
protocolVersion: z.string().or(z.number().int()),
protocolVersion: z.string(),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know of any client or server sending numbers anymore, so bringing this into spec compliance.

@jspahrsummers jspahrsummers merged commit 7372b8a into main Nov 7, 2024
3 checks passed
@jspahrsummers jspahrsummers deleted the justin/support-older-protocol-version branch November 7, 2024 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant